package base;

import java.util.Random;

/**
 * @Auther DRevelation
 * @Date 2020-05-18 上午 10:18
 * @Desc
 */
public class RandomDemo {
    public static void main(String[] args) {
        Random rand = new Random();
        int a = rand.nextInt(100);
        float b = rand.nextFloat();
        System.out.println(a);
        System.out.println(-a);
        System.out.println(b);
    }
}
